<div class="container" id="san_pham">
	<div class="row">
		<div class="span8">
			<div class="post san_pham">
				<h1> <%= @san_pham.noi_dung(@ngon_ngu, true).tieu_de %> </h1>
				<div class="san_pham_tom_tat">
					<div class="hinh_anh_dai_dien">
						<img class="img-rounded" src="<%= @san_pham.hinh_anh %>" />
					</div>
					<div class="noi_dung_dai_dien">
						<% if @san_pham.co_khuyen_mai(Time.now) %>
						<span class="gia_san_pham gia_khuyen_mai"> <%= number_with_delimiter @san_pham.gia_khuyen_mai, :delimiter => " "%> <span class="tien_te">VND</span> </span>
						<% else %>
						<span class="gia_san_pham"> <%= number_with_delimiter @san_pham.gia, :delimiter => " "%> <span class="tien_te">VND</span> </span>
						<% end %>
						<br />
						<a href="<%= url_for :action=>'mua_san_pham', :controller => 'gio_hang', :san_pham_id => @san_pham.id %>" class="btn btn-large btn-primary"><i class="icon-shopping-cart"></i> <%= t 'dat_hang'%></a>
					</div>
					<div class="clearfix"></div>
				</div>
				<div class="san_pham_noi_dung">
					<h2><%= t 'doi_dieu_ve___', :ten => @san_pham.noi_dung(@ngon_ngu, true).tieu_de%></h2>
					<% if !@san_pham.noi_dung(@ngon_ngu).present? %>
					<p class="alert">
						<%= t 'khong_co_noi_dung____hien_thi_bang_ngon_ngu_khac', :nn_hien_tai => APP_CONFIG['ngon_ngu'][@ngon_ngu]['ten']%>
					</p>
					<% end %>
					<div class="noi_dung">
						<%= raw @san_pham.noi_dung(@ngon_ngu, true).noi_dung %>
					</div>
				</div>
			</div>
			<div>
				<%= render "shared/disqus" %>
			</div>
		</div>
		<div class="span4">
			<div>
				<h3><%= t 'san_pham_ngau_nhien_khac'%></h3>
				<ul class="unstyled">
					<% for sp in @san_pham_khacs%>
					<% link_sp = url_for :action => 'index', :danh_muc_slug => sp.danh_muc.slug, :san_pham_slug => sp.slug %>
					<li class="san_pham_xem_truoc sidebar">
						<div>
							<div class="hinh_anh_dai_dien">
								<a href="<%= link_sp %>"> <img class="img-rounded" src="<%= sp.hinh_anh %>" /> </a>
							</div>
							<div class="noi_dung_dai_dien">
								<a class="ten_san_pham" href="<%= link_sp %>"> <%= sp.noi_dung(@ngon_ngu, true).tieu_de %> </a>
								<br />
								<% if sp.co_khuyen_mai(Time.now) %>
								<span class="gia_san_pham gia_goc"> <strike><%= number_with_delimiter sp.gia, :delimiter => " "%> <span class="tien_te">VND</span></strike> </span>
								<br />
								<span class="gia_san_pham gia_khuyen_mai"> <%= number_with_delimiter sp.gia_khuyen_mai, :delimiter => " "%> <span class="tien_te">VND</span> </span>
								<% else %>
								<span class="gia_san_pham"> <%= number_with_delimiter sp.gia, :delimiter => " "%> <span class="tien_te">VND</span> </span>
								<% end %>
								<br />
								<a href="<%= url_for :action=>'mua_san_pham', :controller => 'gio_hang', :san_pham_id => sp.id %>" class="btn btn-info btn-small"><i class="icon-shopping-cart"></i> <%= t 'dat_hang'%></a>
							</div>
							<div class="clearfix"></div>
						</div>
					</li>
					<% end %>
				</ul>
				<a href="<%= url_for :action=>"nhom_san_pham", :danh_muc => @danh_muc.slug	 %>"><%= t 'xem_tat_ca'%></a>
			</div>
		</div>
	</div>
</div>

<div>
	<%= render "shared/goi_y_caphe" %>
</div>